package inter;

import symbols.*;
import lexer.*;

public class Field extends Op {
    public Expr rec, fld;
    public Field(Token tok, Expr rec, Expr fld) {
	super(tok, fld.type);
	this.rec = rec;
	this.fld = fld;
    }
    public Expr gen() {
	return new Field(op, rec, fld.reduce());
    }
    public String toString() {
	return rec.toString()+" . "+fld.toString();
    }
}
